#ifndef _HONDA_H
#define _HONDA_H

#define ON 	1
#define OFF 0

typedef struct honda_t {
	tt_object_t obj;
	uint8_t 	convertedMux;
	uint16_t 	batteryVoltage;
	uint16_t	batteryCurrent;
	uint16_t	engineTemperature;
	uint16_t	batteryTemperature;
	uint16_t	engineRPM;
	uint8_t		fuelWarning;
	uint16_t	dutyCycle;
	uint32_t	counter;
	uint8_t started;
} honda_t;

extern honda_t honda;

void	hondaInit(honda_t *self, void *none);
void	speedCalc(honda_t *self, void *none);
void	startStartEngine(honda_t *self, void *none);
void	stopStartEngine(honda_t *self, void *none);
void	stopKillEngine(honda_t *self, void *none);
void	killEngine(honda_t *self, void *none);
void 	fuelWarning(honda_t *self, void *none);
void	getBatteryCurrent(honda_t *self, void *none);
void	getEngineTemperature(honda_t *self,void *none);
void	getBatteryTemperature(honda_t *self,void *none);
void	getBatteryVoltage(honda_t *self,void *none);
void 	speedInt(void);
void	hondaCanSend(uint16_t msgId);
void	startEngine(honda_t *self, void *none);
void	chokeEngine(honda_t *self, void *none);
void	stopChoke(honda_t *self, void *none);
#endif
